<template>
  <div id="log">
        <el-container>
            <el-header>
                登录
            </el-header>
            
            <el-container>   
                 <el-aside width="200px">
                    <el-menu :router="true">
                         <el-menu-item v-for="item in menuData" :key="item.index" :index="item.index">{{item.text}}</el-menu-item>
                    </el-menu>
                </el-aside>
                <el-main>
                    <router-view></router-view>
                </el-main>
            </el-container>
        </el-container>
        
    </div>
</template>

<script>


export default {
    data(){
        return{
            menuData:[
                {index:'/login/adminsLogin',text:'管理员登录'},
                {index:'/login/salesmansLogin',text:'销售员登录'}
            ]
        }
    },
    
}
</script>

<style lang="scss">
body,html{
    margin:0
}
#log{
    
    margin:0 auto;
    > .el-container {
    min-height: 100vh;
    a{
      text-decoration: none;
      color:black
    }
  }
}
.el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    
  }
  
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    
  }
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
  }
  
  body > .el-container {
    margin-bottom: 40px;
  }
  
  
  /* 表格 */
.el-form{
    width: 350px;
    margin:0 auto
}
</style>